package testes.vSys.bean;

import java.util.Date;

import testes.vSys.Constants;

public class Moviment {
 
	private Date date;
	 
	private double km;
	 
	private double value;
	 
	private int id;

	private Vehicle vehicle;
	
	private EventType type;
	
	public Moviment() {
		this.id = Constants.VSYS_UNKNOWN_ID;
	}	

	public double getKm() {
		return km;
	}

	public void setKm(double km) {
		this.km = km;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Moviment(int id) {
		this.id = id;
	}		
	
	public boolean setVehicle(Vehicle vehicle) {
		this.vehicle = vehicle;
		return true;
	}
	 
	public Vehicle getVehicle() {
		return vehicle;
	}
	 
	public boolean setDate(Date date) {
		this.date = date;
		return true;
	}
	 
	public Date getDate() {
		return date;
	}
	 
	public boolean setKilometers(double km) {
		this.km = km;
		return true;
	}
	 
	public double getKilometers() {
		return km;
	}
	 
	public boolean setEventType(EventType type) {
		this.type = type;
		return true;
	}
	 
	public EventType getEventType() {
		return type;
	}
	 
	public boolean setValue(double value) {
		this.value = value;
		return true;
	}
	 
	public double getValue() {
		return value;
	}
	 
	public int getId() {
		return id;
	}
	 
}
 
